<template>
  <div class="home">
    <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
    <div id="nav">
      <router-link to="/home/attention"><span>关注</span></router-link>
      <router-link to="/home"><span>推荐</span></router-link>
      <router-link to="/home/note"><span>笔记</span></router-link>
      <router-link to="/home/videolist"><span>视频</span></router-link>
    </div>
    <router-view />
  </div>
</template>

<script>
// @ is an alias to /src
// import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: "Home",
  components: {
    // HelloWorld
  },
};
</script>

<style lang="less" scoped>
.home {
  // margin-top: ;
  #nav {
    padding: 15px 15px 0px 15px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    position: fixed;
    top: calc(9vw + 15px);
    left: 0;
    background-color: #fff;
    z-index: 5;
    a {
      color: #aaa;
      font-size: 15px;
      padding-bottom: 5px;
      margin-bottom: 2px;
      margin-left: 20px;
      &:first-child {
        margin-left: 0;
      }
      span {
        transform-origin: bottom;
      }
      &.router-link-exact-active {
        color: #000;
        font-weight: bold;
        border-bottom: 3px solid #ffc533;
        & > span {
          display: block;
          transform: scale(1.2);
        }
      }
    }
  }
}
</style>
